package com.wangyi.im.request;

import com.alibaba.fastjson.JSONArray;

public class IMEventSubscribeAddRequest {

    private String accid;

    private Integer eventType;

    private JSONArray publisherAccids;

    private Long ttl;

    private IMEventSubscribeAddRequest(String accid, Integer eventType, JSONArray publisherAccids, Long ttl){
        this.accid = accid;
        this.eventType =eventType;
        this.publisherAccids = publisherAccids;
        this.ttl = ttl;
    }

    public static class Builder{

        private String accid;

        private Integer eventType;

        private JSONArray publisherAccids;

        private Long ttl;

        public IMEventSubscribeAddRequest build(){
            return new IMEventSubscribeAddRequest(accid, eventType, publisherAccids, ttl);
        }

        public Builder setAccid(String accid) {
            this.accid = accid;
            return this;
        }

        public Builder setEventType(Integer eventType) {
            this.eventType = eventType;
            return this;
        }

        public Builder setPublisherAccids(JSONArray publisherAccids) {
            this.publisherAccids = publisherAccids;
            return this;
        }

        public Builder setTtl(Long ttl) {
            this.ttl = ttl;
            return this;
        }
    }
}
